package com.sailfish.springbootdemo.pojo.db4;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class LoginRecord {

    private Integer loginRecordId;
    private Integer userId;
    private String ipAddress;
    private String networkSeg;
    private String loginResult;
    private String failReason;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    private User user;

    public Integer getLoginRecordId() {
        return loginRecordId;
    }

    public void setLoginRecordId(Integer loginRecordId) {
        this.loginRecordId = loginRecordId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getIpAddress() {
        return ipAddress;
    }

    public void setIpAddress(String ipAddress) {
        this.ipAddress = ipAddress;
    }

    public String getNetworkSeg() {
        return networkSeg;
    }

    public void setNetworkSeg(String networkSeg) {
        this.networkSeg = networkSeg;
    }

    public String getLoginResult() {
        return loginResult;
    }

    public void setLoginResult(String loginResult) {
        this.loginResult = loginResult;
    }

    public String getFailReason() {
        return failReason;
    }

    public void setFailReason(String failReason) {
        this.failReason = failReason;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
